package com.ywu.application.standard.redisCache.data;

import com.ywu.application.standard.redisCache.entity.ApiVisitLogEntity;
import com.ywu.application.standard.redisCache.entity.ApiVisitOverviewEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface YwuOverviewRepository {
    List<ApiVisitLogEntity> queryLogByCurrentTime(@Param("currentTime") String currentTime);

    void deleteLongTimeLog(@Param("time") String time);

    List<ApiVisitOverviewEntity> queryOverviewListBatch(@Param("day") String day, @Param("list") Set<String> urls);

    void insertListBatch(@Param("list") List<ApiVisitOverviewEntity> entityList);

    void updateModel(@Param("model") ApiVisitOverviewEntity entity);

    List<ApiVisitOverviewEntity> queryOverviewGroupInfo(@Param("day") String day);

    List<ApiVisitOverviewEntity> overViewApiVisitTop10(@Param("day") String day);
}
